﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.RecurringJobs.Dto
{
    /// <summary>
    /// 获取组织主管
    /// </summary>
    [Serializable]
    public class GetOrgLeaderOutput
    {
        [JsonProperty("msg")]
        public string Msg { get; set; }

        [JsonProperty("next_page")]
        public int? NextPage { get; set; }

        [JsonProperty("code")]
        public string Code { get; set; }

        [JsonProperty("data")]
        public List<GetOrgLeaderDto> Data { get; set; }

        [JsonProperty("count")]
        public int? Count { get; set; }

        [JsonProperty("page")]
        public int? Page { get; set; }

        [JsonProperty("previous_page")]
        public int? PreviousPage { get; set; }

        [JsonProperty("request_id")]
        public Guid RequestId { get; set; }

        [JsonProperty("page_size")]
        public int PageSize { get; set; }
    }

    public partial class GetOrgLeaderDto
    {
        /// <summary>
        /// 组织编码，唯一id
        /// </summary>
        [JsonProperty("org_code")]
        public string OrgCode { get; set; }

        /// <summary>
        /// 随机id
        /// </summary>
        [JsonProperty("kid")]
        public string Kid { get; set; }

        /// <summary>
        /// 审批层级
        /// </summary>
        [JsonProperty("approve_level")]
        public int? ApproveLevel { get; set; }

        /// <summary>
        /// 自然组织层级
        /// </summary>
        [JsonProperty("approve_level_2")]
        public int? ApproveLevel2 { get; set; }

        /// <summary>
        /// 是否主职（Y主职；N兼职）
        /// </summary>
        [JsonProperty("is_major")]
        public string IsMajor { get; set; }

        /// <summary>
        /// 第0层组织编码
        /// </summary>
        [JsonProperty("org_0_code")]
        public string Org0_Code { get; set; }

        /// <summary>
        /// 第0层组织名称
        /// </summary>
        [JsonProperty("org_0_name")]
        public string Org0_Name { get; set; }

        [JsonProperty("org_1_code")]
        public string Org1_Code { get; set; }

        [JsonProperty("org_1_name")]
        public string Org1_Name { get; set; }

        [JsonProperty("org_2_code")]
        public string Org2_Code { get; set; }

        [JsonProperty("org_2_name")]
        public string Org2_Name { get; set; }


        [JsonProperty("org_3_code")]
        public string Org3_Code { get; set; }

        [JsonProperty("org_3_name")]
        public string Org3_Name { get; set; }

        [JsonProperty("org_4_code")]
        public string Org4_Code { get; set; }

        [JsonProperty("org_4_name")]
        public string Org4_Name { get; set; }


        [JsonProperty("org_5_code")]
        public string Org5_Code { get; set; }

        [JsonProperty("org_5_name")]
        public string Org5_Name { get; set; }

        [JsonProperty("org_6_code")]
        public string Org6_Code { get; set; }

        [JsonProperty("org_6_name")]
        public string Org6_Name { get; set; }

        [JsonProperty("org_7_code")]
        public string Org7_Code { get; set; }

        [JsonProperty("org_7_name")]
        public string Org7_Name { get; set; }

        [JsonProperty("org_8_code")]
        public string Org8_Code { get; set; }

        [JsonProperty("org_8_name")]
        public string Org8_Name { get; set; }

        [JsonProperty("org_9_code")]
        public string Org9_Code { get; set; }

        [JsonProperty("org_9_name")]
        public string Org9_Name { get; set; }

        /// <summary>
        /// 职位编码
        /// </summary>
        [JsonProperty("post_code")]
        public string PostCode { get; set; }

        /// <summary>
        /// 职位名称
        /// </summary>
        [JsonProperty("post_name")]
        public string PostName { get; set; }

        /// <summary>
        /// 员工号
        /// </summary>
        [JsonProperty("employee_id")]
        public string EmployeeId { get; set; }

        /// <summary>
        /// 员工名称
        /// </summary>
        [JsonProperty("employee_name")]
        public string EmployeeName { get; set; }

        /// <summary>
        /// 删除标识，true为删除，false为未删除
        /// </summary>
        [JsonProperty("is_delete")]
        public bool IsDelete { get; set; }

    }
}
